# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html

import scrapy


class ImoocItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    pass


class ImoocFreeDirectItem(scrapy.Item):
    """
    免费: 课程方向
    """
    direct_name = scrapy.Field()
    direct_code = scrapy.Field()
    direct_url = scrapy.Field()
    created_at = scrapy.Field()


class ImoocFreeTypeItem(scrapy.Item):
    """
    免费: 课程分类
    """
    type_id = scrapy.Field()
    type_name = scrapy.Field()
    type_url = scrapy.Field()
    direct_code = scrapy.Field()
    created_at = scrapy.Field()


class ImoocFreeCourseListItem(scrapy.Item):
    """
    免费: 课程列表
    """
    type_id = scrapy.Field()
    course_id = scrapy.Field()
    course_name = scrapy.Field()
    course_card_desc = scrapy.Field()
    course_img_url = scrapy.Field()
    course_label_str = scrapy.Field()
    course_level = scrapy.Field()
    course_student_num = scrapy.Field()
    course_price = scrapy.Field()
    course_cost_price = scrapy.Field()
    course_url = scrapy.Field()
    created_at = scrapy.Field()


class ImoocFreeCourseInfoItem(scrapy.Item):
    """
    免费: 课程信息
    """
    course_id = scrapy.Field()
    course_description = scrapy.Field()
    course_chapter_info = scrapy.Field()
    teacher_id = scrapy.Field()
    teacher_url = scrapy.Field()
    created_at = scrapy.Field()


class ImoocTeacherItem(scrapy.Item):
    """
    免費: 講師信息
    """

    teacher_id = scrapy.Field()
    teacher_url = scrapy.Field()
    teacher_header_img = scrapy.Field()
    teacher_nickname = scrapy.Field()
    teacher_professional = scrapy.Field()
    teacher_detail = scrapy.Field()
    teacher_desc = scrapy.Field()
    created_at = scrapy.Field()
